<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!--百度网站验证-->
    <meta name="baidu-site-verification" content="code-yyop3mOJow" />
    <!--谷歌网站验证-->
    <meta name="google-site-verification" content="RiPanqdFzlLKIEe-QN_iFjK30LMf2gNNMCxJ4ZLL0YU" />
    <!--    <meta property="og:url"                content="http://www.yinpeiauto.com/page/detail/18164" />-->
    <title th:text="${pageInf.title}">YINPEI AUTO PARTS</title>
    <link rel="icon" type="image/x-icon" th:href="@{/static/index/img/favicon.png}" >
    <meta name="keywords" th:content="${pageInf.keywords}" />
    <meta name="description" th:content="${pageInf.description}" />
    <link rel="stylesheet" th:href="@{/static/index/css/swiper-3.4.2.min.css}">
    <link rel="stylesheet" th:href="@{/static/index/css/GL.css}">
    <link rel="stylesheet" th:href="@{/static/index/layui/css/layui.css}">
    <script th:src="@{/static/index/js/jquery-3.1.1.min.js}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{/static/index/layui/layui.js}"></script>
    <script th:src="@{/static/index/js/swiper-3.4.2.jquery.min.js}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{/static/index/js/swiper-3.4.2.min.js}"></script>
    <!--站长流量统计工具-->
    <script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
    <script>LA.init({id:"JybJXzxP2h8LOVlO",ck:"JybJXzxP2h8LOVlO"})</script>
    <!-- FACEBOOK 爬取内容 -->
    <meta property="og:type"               content="article" />
    <meta property="og:title"              th:content="${pageInf.title}" />
    <meta property="og:description"        th:content="${pageInf.description}" />
    <meta property="og:image"              th:content="${detail.image}" />
</head>

<body>

<header>
    <!--页面顶部内容,登录登出等信息-->
    <div th:replace="common::page-top"></div>
    <!--搜索导航-->
    <div th:replace="common::search-nav"></div>
</header>
<!--主体内容-->
<div style="height: auto">
    <div class="header_banner" style="height: auto">
        <div th:replace="common::catalog"></div>
        <div class="header_main_center">
            <div name="itemBox" style="width: 100%">
                <!--产品细节 detail-->
                <div class="aa1" th:style="'background-image: url(/static/index/img1/aa.jpg)'"><span
                        id="Labelpart1">Part Information</span></div>

                <div style="min-height:260px;">
                    <div style="width:310px;float: left">
                        <form>
                            <img th:src="${detail.image}" width="299px">
                            <li style="list-style-type:none; margin-top: 8px">
                                <div style="float: left" th:if="${detail.image1}">
                                    <img th:src="${detail.image1}" width="60px" height="60px">
                                </div>
                                <div style="float: left" th:if="${detail.image2}">
                                    <img th:src="${detail.image2}" width="60px" height="60px">
                                </div>
                                <div style="float: left" th:if="${detail.image3}">
                                    <img th:src="${detail.image3}" width="60px" height="60px">
                                </div>
                                <div style="float: left" th:if="${detail.image4}">
                                    <img th:src="${detail.image4}" width="60px" height="60px">
                                </div>
                                <div style="float: left" th:if="${detail.image5}">
                                    <img th:src="${detail.image5}" width="60px" height="60px">
                                </div>
                                <div style="clear:both"></div>
                            </li>
                        </form>
                    </div>
                    <div class="a22s">
                        <li th:text="${'TYPE: &nbsp;&nbsp;' + detail.catalogEnname}"></li>
                        <li th:text="${'PART NO: &nbsp;&nbsp;' + detail.productNo}"></li>
                        <li>
                            <pre th:text="${'ATTRIBUTES: &nbsp;&nbsp;' + detail.attributes}"></pre>
                        </li>
                        <li><div id="shareBtn" class="btn btn-success clearfix">Share Dialog</div></li>
                    </div>
                    <div style="clear:both"></div>
                </div>
                <!-- OEM号码 -->
                <!--产品细节 detail-->
                <div class="aa1" th:style="'background-image: url(/static/index/img1/aa.jpg);margin-top:8px'"><span
                        id="Labelpart1">OEM Number</span></div>
                <div class="a22s1">
                    <li th:each="oem : ${detail.oemList}">
                        <b th:text="${oem.brand}"></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b
                            th:text="${oem.refNo}"></b>
                    </li>
                </div>
                <div class="aa1" th:style="'background-image: url(/static/index/img1/aa.jpg);margin-top:8px'"><span
                        id="Labelpart1">APPLICATION</span></div>
                <div class="a22s1">
                    <li th:each="car : ${detail.carList}">
                        <b th:text="${car.brand}"></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b
                            th:text="${car.fullname}"></b>
                    </li>
                </div>

                <div class="section_second">
                    <!-- 第一层 -->
                    <div class="section_second_header">
                        <p class="section_second_header_img"></p>
                        <div class="section_second_header_left">
                            <p></p>
                            <span class="">Similar Products</span>
                            <span> </span>
                        </div>

                    </div>
                    <!--相似产品轮播图-->
                    <div class="section_second_list">
                        <div class="swiper-container swiper_section_second_list_left">
                            <div class="swiper-wrapper">
                                <div class="swiper-slide" th:each="item:${similarProducts}">
                                    <div class="hot-sell-item">
                                        <img th:src="${item.image}" alt="" style="width: 180px;height: 150px;">
                                        <a th:href="@{${#httpServletRequest.getScheme() + '://' + #httpServletRequest.getServerName()} + '/page/detail/' + ${item.id} }"
                                           th:text="${item.productNo}"
                                           style="color: #1E9FFF;Display:block;text-align:center"
                                        ></a>
                                        <p th:text="${item.attributes}" style="Display:block;text-align:center"></p>
                                    </div>
                                </div>
                            </div>
                            <div class="swiper-button-prev second_list">
                                <p></p>
                            </div>
                            <div class="swiper-button-next second_list">
                                <p></p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
<!--页脚-->
<div th:replace="common::footer"></div>
</body>
<script>
    window.fbAsyncInit = function() {
        FB.init({
            appId            : '623569599640523',
            autoLogAppEvents : true,
            xfbml            : true,
            version          : 'v16.0'
        });
    };
    document.getElementById('shareBtn').onclick = function() {
        FB.ui({
            display: 'popup',
            method: 'share',
            href: window.location.href,
        }, function(response){});
    }
</script>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>
<script type="text/javascript" th:src="@{/static/index/js/text.js}"></script>
<script type="text/javascript" th:src="@{/static/index/js/header.js}"></script>
<script type="text/javascript" th:src="@{/static/index/js/secend.js}"></script>
<script type="text/javascript" th:src="@{/static/index/js/index.js}"></script>
<script type="text/javascript" th:src="@{/static/index/js/left,top.js}"></script>
<script type="text/javascript" th:src="@{/static/index/js/catalogLoader.js}"></script>
<style>
    .aa1 {
        width: 100%;
        height: 30px;
        margin-bottom: 1px;
        line-height: 30px;
        font-weight: bold;
        padding-left: 12px;
        float: left;
    }

    .a22s {
        margin-left: 325px;
        list-style: none;
        line-height: 30px;
        background-color: #cccccc;
        border-color: #cccccc;
        border-style: solid;
        border-width: 1px 1px 1px 1px;
        margin-top: 15px;
    }

    .a22s li {
        background-color: #ffffff;
        margin-bottom: 1px;
        padding-left: 15px;
    }

    .a22s1 {
        list-style: none;
        list-style-type: none;
        line-height: 30px;
    }

    .a22s1 li:first-child {
        margin-top: 8px;
    }

    .a22s1 li {
        background-color: #ffffff;
        margin-bottom: 1px;
        padding-left: 15px;
    }

    .btn-success {
        color: #ffffff;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
        background-color: #5bb75b;
        background-image: -moz-linear-gradient(top, #62c462, #51a351);
        background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
        background-image: -webkit-linear-gradient(top, #62c462, #51a351);
        background-image: -o-linear-gradient(top, #62c462, #51a351);
        background-image: linear-gradient(to bottom, #62c462, #51a351);
        background-repeat: repeat-x;
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0);
        border-color: #51a351 #51a351 #387038;
        border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
        *background-color: #51a351;
        filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
    }

    .btn {
        display: inline-block;
        *display: inline;
        *zoom: 1;
        padding: 4px 12px;
        margin-bottom: 0;
        font-size: 14px;
        line-height: 20px;
        *line-height: 20px;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
        color: #333333;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
        background-color: #f5f5f5;
        background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
        background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
        background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
        background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
        background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
        background-repeat: repeat-x;
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
        border-color: #e6e6e6 #e6e6e6 #bfbfbf;
        border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
        *background-color: #e6e6e6;
        filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
        border: 1px solid #bbbbbb;
        border-top-color: rgb(187, 187, 187);
        border-right-color: rgb(187, 187, 187);
        border-bottom-color: rgb(187, 187, 187);
        border-left-color: rgb(187, 187, 187);
        *border: 0;
        border-bottom-color: #a2a2a2;
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
        *margin-left: .3em;
        -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
        -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
    }
</style>
</html>
